package com.ly.heart.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ly.heart.domain.KingBadHandleEntity;

/**
 * 金蝶-不良品处理单Mapper接口
 *
 * @author cxl
 * @date 2024-08-11
 */
public interface KingBadHandleMapper extends BaseMapper<KingBadHandleEntity> {
    /**
     * 查询金蝶-不良品处理单
     *
     * @param id 金蝶-不良品处理单ID
     * @return 金蝶-不良品处理单
     */
    public KingBadHandleEntity selectKingBadHandleEntityById(String id);

    /**
     * 查询金蝶-不良品处理单列表
     *
     * @param kingBadHandleEntity 金蝶-不良品处理单
     * @return 金蝶-不良品处理单集合
     */
    public List<KingBadHandleEntity> selectKingBadHandleEntityList(KingBadHandleEntity kingBadHandleEntity);

    /**
     * 新增金蝶-不良品处理单
     *
     * @param kingBadHandleEntity 金蝶-不良品处理单
     * @return 结果
     */
    public int insertKingBadHandleEntity(KingBadHandleEntity kingBadHandleEntity);

    /**
     * 修改金蝶-不良品处理单
     *
     * @param kingBadHandleEntity 金蝶-不良品处理单
     * @return 结果
     */
    public int updateKingBadHandleEntity(KingBadHandleEntity kingBadHandleEntity);

    /**
     * 删除金蝶-不良品处理单
     *
     * @param id 金蝶-不良品处理单ID
     * @return 结果
     */
    public int deleteKingBadHandleEntityById(String id);

    /**
     * 批量删除金蝶-不良品处理单
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteKingBadHandleEntityByIds(String[] ids);

    /**
     * 查询总数
     * @return
     */
    Integer queryCount();
}
